<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1 id="dj">1000</h1>
    <script>
        // alert('hello');
        // if(confirm("是否删除")){
        //     alert("已删除");
        // }
        // alert(prompt("输入姓名"));
        var dj = document.getElementById("dj");
        alert(parseInt(prompt('请输入价格',"例如100"))+parseInt(dj.innerHTML));
    </script>
</body>
</html>